#!/bin/bash
set -e
./vCurrentMobileCMD5.1.37.37.exe N dtim_upgrade.bin 0316/TavorSAAR_PV_OBM_DTIM_LB-NAND16.bin.rnd 0318/TavorSAAR_PV_OBM_DTIM_LB-NAND16.bin.rnd /sectorsize=0x20000 /ramsize=0x2000000 /numbuffersectors=3 /OldSectionOffset=0x1C0000 /NewSectionOffset=0x1C0000 /codestart=0x0  /MultiSection=1 /IsLastSection=0
./vCurrentMobileCMD5.1.37.37.exe N dtim_degrade.bin 0318/TavorSAAR_PV_OBM_DTIM_LB-NAND16.bin.rnd 0316/TavorSAAR_PV_OBM_DTIM_LB-NAND16.bin.rnd /sectorsize=0x20000 /ramsize=0x2000000 /numbuffersectors=3 /OldSectionOffset=0x1C0000 /NewSectionOffset=0x1C0000 /codestart=0x0  /MultiSection=1 /IsLastSection=0
./vCurrentMobileCMD5.1.37.37.exe N zimage_upgrade.bin 0316/zImage_old 0318/zImage_new /sectorsize=0x20000 /ramsize=0x2000000 /numbuffersectors=3 /type=zImage /zlibversion=1.2.3 /OldSectionOffset=0x420000 /NewSectionOffset=0x420000 /codestart=0x0 /MultiSection=1 /IsLastSection=1
./vCurrentMobileCMD5.1.37.37.exe N zimage_degrade.bin 0318/zImage_new 0316/zImage_old /sectorsize=0x20000 /ramsize=0x2000000 /numbuffersectors=3 /type=zImage /zlibversion=1.2.3 /OldSectionOffset=0x420000 /NewSectionOffset=0x420000 /codestart=0x0 /MultiSection=1 /IsLastSection=1
./vCurrentMobileCMD5.1.37.37.exe C sulin_upgrade.bin dtim_upgrade.bin zimage_upgrade.bin
./vCurrentMobileCMD5.1.37.37.exe C sulin_degrade.bin dtim_degrade.bin zimage_degrade.bin
